import { ApiProperty, PartialType } from '@nestjs/swagger';
import { ResFailDto, ResSuccessDto } from 'src/shared-module/dto/base.dto';
import { ClockItem } from '../entities/clock.entity';

export class GetClockReqDto {}

export class GetClockResSuccessDto extends PartialType(ResSuccessDto) {
  @ApiProperty({
    required: true,
    type: 'array',
    items: {
      type: 'object',
      default: {
        id: '',
        name: '',
        tags: [],
        target_timestamp: 0,
        now_timestamp: 0,
        playing: true,
      },
    },
  })
  clocks: ClockItem[];
}

export class GetClockResFailDto extends PartialType(ResFailDto) {}
